package com.pcbly.web.bean.news;

import java.util.HashSet;
import java.util.Set;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.pcbly.web.bean.AbstractBaseBean;




public class NewsTagBean  extends AbstractBaseBean {
    /** * serial. */

    /**
	 * 
	 */
	private static final long serialVersionUID = 6947859858158995414L;

	/** * name. */
    private String name;

    /** * theSort. */
    private Integer sort;

    /** * newses. */
    private Set<NewsBean> newses = new HashSet<NewsBean>(0);

    /** * 构造方法. */
    public NewsTagBean() {
    }

 

    public String getName() {
        return name;
    }

    /** * @param name name. */
    public void setName(String name) {
        this.name = name;
    }


   
    public Set<NewsBean> getNewses() {
        return newses;
    }

    /** * @param newses newses. */
    public void setNewses(Set<NewsBean> newses) {
        this.newses = newses;
    }
    
    /**
	 * @see java.lang.Object#equals(Object)
	 */
	public boolean equals(Object object) {
		return EqualsBuilder.reflectionEquals(this, object);
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return ToStringBuilder.reflectionToString(this,
				ToStringStyle.MULTI_LINE_STYLE);
	}



	public void setSort(Integer sort) {
		this.sort = sort;
	}



	public Integer getSort() {
		return sort;
	}
}
